package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;

import com.itheima.pojo.Permission;


import java.util.List;

public interface PermissionService {

    PageResult<Permission> findPage(QueryPageBean queryPageBean);


    void add(Permission permission);

    Permission findById(int id);

    void update(Permission permission);

    void deleteById(int id);


    List<Permission> findAll();

    List<Integer> findPermissionIdsByRoleId(int id);

}

